package com.mmall.param;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description:
 * @author: mingtai
 * @createDate: 0:49 2020/7/8
 * @version: 1.0
 */

@Getter
@Setter
public class TestVo {

    // 字符串
    @NotBlank(message = "hello,不能是空啊")
    private String mag;

    // 基本数据类型
    @NotNull(message = "id 不能为空")
    private Integer id;

    // @NotEmpty
    private List<String> list;
}



